package com.cfpl.admin_vegetable_service.mapper;

import com.cfpl.admin_vegetable_service.VO.SearchResult;
import com.cfpl.project_common.pojo.VegetableEntry;
import com.cfpl.project_common.pojo.Warehouse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 14720
* @description 针对表【warehouse(仓库管理表)】的数据库操作Mapper
* @createDate 2023-11-02 10:16:29
* @Entity com.cfpl.project_common.pojo.Warehouse
*/
@Mapper
public interface WarehouseMapper extends BaseMapper<Warehouse> {

    /**
     * 更新产品销售数量
     * @param deliveryNum 分发数量
     * @param wareHouseId 仓库ID信息
     */
    void updateProductSellNum(@Param("deliveryNum") int deliveryNum, @Param("wareHouseId") Long wareHouseId);

    /**
     * 查询追溯信息
     */
    SearchResult queryTraceabilityInfo(@Param("identifyCode") String identifyCode);


}




